package com.mew.information.controller;

import com.mew.common.rest.information.WorldInfoBO;
import com.mew.information.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 邮件
 * @author dylin
 * @create 2021/4/2
 */
@Controller
@RequestMapping(value = "/information")
public class InformationController {
    @Autowired
    private InformationService informationService;

    /**
     * 查询世界消息
     * @return
     */
    @PostMapping("/world_info/query")
    @ResponseBody
    public List<WorldInfoBO> queryWorldInfo(){
        return informationService.queryWorldInfo();
    }
}
